package bman.tools.net;

import java.net.Socket;

public class SocketTransmission implements RadioTransmission
{
	private byte[] message;
	Socket socket;
	
	public SocketTransmission(Socket socket, byte[] message)
	{
		this.socket = socket;
		this.message = message;
	}

	public byte[] getMessage()
	{
		return message;		
	}

	public boolean reply(byte[] message)
	{
		try
		{
			//Radio.send(socket,message);
			return true;
		}
		catch(Exception e)
		{
			return false;
		}
	}

}
